<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Cool Black
Description: A three-column, fixed-width blog design.
Version    : 1.0
Released   : 20090309

-->
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title>
			<?php echo $this->pageTitle ?>
			<?php
			$mode = ucfirst(Yii::app()->params['mode']);
			if ($mode != 'Production') {
				echo "&laquo;{$mode}&raquo;";
			}
			?>
		</title>
		<meta name="keywords" content="<?php echo Yii::app()->name ?>" />
		<meta name="description" content="<?php echo Yii::app()->name ?>" />
		<?php
		Yii::app()->clientScript->registerCoreScript('jquery');
		$requestBaseUrl = Yii::app()->request->baseUrl;
		$themeBaseUrl = Yii::app()->theme->baseUrl;
		$cs = Yii::app()->clientScript;

		// Skin
		// Automatic css versioning conflict with rewrite rule that add
		// index.php to all request. Need further research.
		// $timestamp = filemtime(dirname(__FILE__) . '/../../css/default.css');
		// $path = $themeBaseUrl . '/css/default.' . $timestamp . '.css';
		$path = $themeBaseUrl . '/css/style.11.css';
		$cs->registerCssFile($path, 'screen');
		$path = $themeBaseUrl . '/css/form.8.css';
		$cs->registerCssFile($path, 'screen');
		$path = "$requestBaseUrl/images/senkom.ico";
		$cs->registerLinkTag("shortcut icon", "image/x-icon", $path);
		?>
	</head>

	<body>
		<!-- start header -->
		<div id="header">
			<div id="logo">
				
			</div>
		</div>

		<div id="menu">
			<?php
			$widget = 'zii.widgets.CMenu';
			$items = array(
				array('label'=>'Homepage', 'url'=>array('site/index')),
				array('label'=>'Berita', 'url'=>array('news/index')),
				array('label'=>'Galeri', 'url'=>array('gallery/index')),
				array('label'=>'Video', 'url'=>array('site/video')),
				array(
					'label'=>'Profil',
					'url'=>array('site/page', 'view'=>'about')
				),
				array('label'=>'Kontak', 'url'=>array('/office')),
			);
			$properties = array(
				'items'=>$items,
				'id'=>'main',
				'activeCssClass'=>'current_page_item',
			);
			$this->widget($widget, $properties);
			?>
		</div>
		<!-- end header -->

		<div id="wrapper">
			<!-- start page -->
			<div id="page">
				<!-- start content -->
				<?php echo $content; ?>
				<!-- end content -->
				<div style="clear: both;">&nbsp;</div>
			</div>
			<!-- end page -->
		</div>

		<div id="footer">
			<p class="copyright">
				Design by
				<a href="http://www.freecsstemplates.org" target="_blank">
					Free CSS Templates
				</a>
				+
				<a href="http://p.yusukekamiyamane.com" target="_blank">
					Fugue Icon
				</a>
			</p>
			<p class="link">
				Powered by
				<a href="http://www.yiiframework.com" target="_blank">Yii</a>
				&amp;
				<a href="http://www.jquery.com" target="_blank">jQuery</a>
			</p>
		</div>

	</body>

</html>
